package com.kuzan.autocloud.common.model.workflow.configuration;

import com.kuzan.autocloud.common.model.Base;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p>Description: </p>
 *
 * @author kuzank
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "sys_workflow")
public class WorkFlowInfo extends Base {

    @Column(length = 32)
    private String form;

    public static WorkFlowInfo of(String title, String form, String id) {
        WorkFlowInfo workFlowInfo = new WorkFlowInfo();
        workFlowInfo.setId(id);
        workFlowInfo.setTitle(title);
        workFlowInfo.setForm(form);
        return workFlowInfo;
    }
}
